<div class="naplok index">
<h2><?php echo __('Naplok');?></h2>
<p>
<?php
echo $this->Paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%')
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $this->Paginator->sort('id');?></th>
	<th><?php echo $this->Paginator->sort('ceg_id');?></th>
	<th><?php echo $this->Paginator->sort('naplotipus_id');?></th>
	<th><?php echo $this->Paginator->sort('valuta_id');?></th>
	<th><?php echo $this->Paginator->sort('sorszam');?></th>
	<th><?php echo $this->Paginator->sort('nev');?></th>
	<th><?php echo $this->Paginator->sort('alapertelmezett_osztaly');?></th>
	<th><?php echo $this->Paginator->sort('alapertelmezett_szamla');?></th>
	<th><?php echo $this->Paginator->sort('lezart');?></th>
	<th class="actions"><?php echo __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($naplok as $naplo):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $naplo['Naplo']['id']; ?>
		</td>
		<td>
			<?php echo $naplo['Naplo']['ceg_id']; ?>
		</td>
		<td>
			<?php echo $this->Html->link($naplo['Naplotipus']['id'], array('controller'=> 'naplotipusok', 'action'=>'mutat', $naplo['Naplotipus']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($naplo['Valuta']['id'], array('controller'=> 'valutak', 'action'=>'mutat', $naplo['Valuta']['id'])); ?>
		</td>
		<td>
			<?php echo $naplo['Naplo']['sorszam']; ?>
		</td>
		<td>
			<?php echo $naplo['Naplo']['nev']; ?>
		</td>
		<td>
			<?php echo $naplo['Naplo']['alapertelmezett_osztaly']; ?>
		</td>
		<td>
			<?php echo $naplo['Naplo']['alapertelmezett_szamla']; ?>
		</td>
		<td>
			<?php echo $naplo['Naplo']['lezart']; ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('mutat'), array('action'=>'mutat', $naplo['Naplo']['id'])); ?>
			<?php echo $this->Html->link(__('szerkeszt'), array('action'=>'szerkeszt', $naplo['Naplo']['id'])); ?>
			<?php //echo $this->Html->link(__('Delete'), array('action'=>'delete', $naplo['Naplo']['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $naplo['Naplo']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $this->Paginator->prev('<< '.__('previous'), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $this->Paginator->numbers();?>
	<?php echo $this->Paginator->next(__('next').' >>', array(), null, array('class'=>'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $this->Html->link(__('Új Napló'), array('action'=>'uj')); ?></li>
		<li><?php echo $this->Html->link(__('List Valutak'), array('controller'=> 'valutak', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Valuta'), array('controller'=> 'valutak', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Naplotipusok'), array('controller'=> 'naplotipusok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Naplotipus'), array('controller'=> 'naplotipusok', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Bizonylatok'), array('controller'=> 'bizonylatok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Bizonylat'), array('controller'=> 'bizonylatok', 'action'=>'add')); ?> </li>
	</ul>
</div>
